package com.million.eduservice.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.million.eduservice.entity.EduComment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.million.eduservice.entity.vo.comment.CommentVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 评论 Mapper 接口
 * </p>
 *
 * @author 十麓
 * @since 2022-04-07
 */
@Mapper
public interface EduCommentMapper extends BaseMapper<EduComment> {

    //自定义构造器 分页条件查询评论列表
    Page<CommentVo> selectCommentVoList (Page<CommentVo> commentVoPage, @Param(Constants.WRAPPER) QueryWrapper<EduComment> queryWrapper);
}
